var draw=document.getElementById("ten");

var base=5;

function addition(d){

    draw.innerText="";

    for(let i=0;i<=d;i++){
   
        for(let j=0;j<=d;j++){
         
            for(let k=0;k<=d;k++){
              
                if(j+k===d){
                    draw.innerText+=j+"+"+k+"=______";
                }
        }
    }
        break;
    }
}


function count(){
    base++
    addition(base);

}

function down(){
    base--
    addition(base);

}